﻿package com.common.physics
{
	public class ForceEngine
	{
				
		static public function addVectors(forceVectors:Array):Vector2{			
			var vectorSum:Vector2=new Vector2();
			for (var i:int=0; i<forceVectors.length; i++){
				vectorSum.x += Vector2(forceVectors[i]).x;
				vectorSum.y += Vector2(forceVectors[i]).y;
			} 
			return vectorSum;
		}
		
		
		public static function resultantVector_Perpendicular(forceVectors:Array) : Vector2 {
//			var resultant:Vector2=new Vector2();
//			for (var i:int=0; i<forceVectors.length; i++){
//				resultant.x += Vector2(forceVectors[i]).x;
//				resultant.y += Vector2(forceVectors[i]).y;
//			}
//			return resultant;
		}
		
	}
}
